﻿using KayakMes.Common;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KayakMes.WarehouseManage.Domain.Entities
{
    [SugarTable("purchaseorder")]
    public class PurchaseOrderModel:BaseEntity
    {
        /// <summary>
        /// 采购订单号
        /// </summary>
        [SugarColumn(ColumnDataType = "NVARCHAR2(20)")]
        public string OrderNumber { get; set; }
        /// <summary>
        /// 收货地址
        /// </summary>
        [SugarColumn(ColumnDataType = "NVARCHAR2(20)")]
        public string ShippingAddress { get; set; }
        /// <summary>
        /// 供应商
        /// </summary>
        [SugarColumn(ColumnDataType = "NVARCHAR2(20)")]
        public string SupplierName { get; set; }
        /// <summary>
        /// 交货日期
        /// </summary>
        public DateTime DeliveryDate { get; set; }
        /// <summary>
        /// 采购类型，默认为采购申请
        /// </summary>
        [SugarColumn(ColumnDataType = "NVARCHAR2(4)")]
        public string PurchaseType { get; set; } = "采购申请";
        /// <summary>
        /// 是否含税
        /// </summary>
        public bool IsPlusDuty { get; set; }
        /// <summary>
        /// 总价(元)
        /// </summary>
        public decimal TotalAmount { get; set; }
        /// <summary>
        /// 备注信息
        /// </summary>
        [SugarColumn(ColumnDataType = "NVARCHAR2(200)")]
        public string Remark { get; set; } = string.Empty;
        /// <summary>
        /// 产品编号字符串，逗号分隔
        /// </summary>
        [SugarColumn(ColumnDataType = "NVARCHAR2(100)")]
        public string ProductId { get; set; }
    }
}
